#-------------------------------------------------
#
# Project created by QtCreator 2011-08-04T17:39:27
#
#-------------------------------------------------

QT       += core gui
QT       += sql
QT       += webkit
QT       += network
QT       += xml

TARGET      = PISPlayer
TEMPLATE    = app

#DEFINES         +=  DEMOVERSION
#DEFINES         +=  LICENSE

DEPENDPATH      += .
#INCLUDEPATH    += ../..
INCLUDEPATH     += licence
INCLUDEPATH     += ./public
INCLUDEPATH     += /home/lin/SLCD/slcd1.0/lib

#CONFIG += DEMOVERSION

#CONFIG += GLOBAL_SLCD_LIB


CONFIG(release, debug|release) {
    message("build release version................")
    DEFINES += QT_NO_DEBUG_OUTPUT
}

unix:DEFINES   = _TTY_POSIX_
win32:DEFINES  = _TTY_WIN_

win32:{
DEFINES         +=  CEPIDS

HEADERS     += public/win_qextserialport.h
SOURCES     += public/win_qextserialport.cpp
}

unix:{

DEFINES      += QT_NO_STYLE_GTK

#DEFINES     += PDFVIWER

#DEFINES     += PDFVIEWER


HEADERS     += public/posix_qextserialport.h \
               licence/licence.h \
               usb/usbmonitor.h \
               usb/updatefile.h \
               licence/DES.h \
               examinition/systemexaminition.h \
               examinition/examinitionthread.h


SOURCES     += public/posix_qextserialport.cpp \
               usb/usbmonitor.cpp \
               usb/updatefile.cpp  \
               examinition/systemexaminition.cpp \
               examinition/examinitionthread.cpp



PDFVIWER{

INCLUDEPATH     += /usr/include/poppler/qt4
LIBS            += -L/usr/lib -lpoppler-qt4

HEADERS         += pdfviewer/pdfviewer.h


SOURCES         += pdfviewer/pdfviewer.cpp
    }

}



GLOBAL_SLCD_LIB {
DEFINES += GLOBAL_SLCD_LIB

LIBS        += -L$$PWD/lib -lQtslcd

HEADERS     += licence/licence.h
SOURCES     += licence/licence.cpp
}



include(./public/log4qt/log4qt.pri)

SOURCES += main.cpp\
        pisplayer.cpp \
    bulletinboard/scrolllabel.cpp \
    flashplayer/flashplayer.cpp \
    mediaplayer/mprocess.cpp \
    mediaplayer/mplayer.cpp \
    pictureviewer/windowblindsitem.cpp \
    pictureviewer/pixplaylabel.cpp \
    playlist/playlist.cpp \
    playlist/picturelist.cpp \
    playlist/medialist.cpp \
    playlist/flashlist.cpp \
    playlist/bulletinlist.cpp \
    public/routedb.cpp \
    public/qextserialport.cpp \
    public/qextserialbase.cpp \
    public/database.cpp \
    tis/tisserialport.cpp \
    tis/tis.cpp \
    public/deffun.cpp \
    public/configclass.cpp \
    ptu/tcpserver.cpp \
    ptu/serverwidget.cpp \
    ptu/serialport.cpp \
    ptu/serialctl.cpp \
    ptu/qextserialthread.cpp \
    ptu/manageprocess.cpp \
    ptu/clientservicethread.cpp \
    ptu/clientservice.cpp \
    public/xmlparser.cpp \
    ptu/ceudpsocket.cpp \
    ptu/udpsocketthread.cpp \
    playlist/moduleplay.cpp \
    usb/updateresource.cpp \
    update/updatetcpserver.cpp \
    update/updatesocket.cpp \
    update/updateserver.cpp \
    update/recepkgmanage.cpp \
    update/updatexmlparser.cpp \
    update/updateclientthread.cpp \
    usb/usbthread.cpp \
    public/processsignalobject.cpp \
    ptu/serialctlthread.cpp

HEADERS  += pisplayer.h \
    bulletinboard/scrolllabel.h \
    flashplayer/flashplayer.h \
    mediaplayer/mprocess.h \
    mediaplayer/mplayer.h \
    pictureviewer/windowblindsitem.h \
    pictureviewer/pixplaylabel.h \
    playlist/playlist.h \
    playlist/picturelist.h \
    playlist/medialist.h \
    playlist/flashlist.h \
    playlist/bulletinlist.h \
    public/routedb.h \
    public/qextserialport.h \
    public/qextserialbase.h \
    public/log.h \
    public/environment.h \
    public/database.h \
    tis/tisserialport.h \
    tis/tis.h \
    public/configclass.h \
    playlist/moduleplay.h \
    ptu/tcpserver.h \
    ptu/serverwidget.h \
    ptu/serialport.h \
    ptu/serialctl.h \
    ptu/qextserialthread.h \
    ptu/manageprocess.h \
    ptu/clientservicethread.h \
    ptu/clientservice.h \
    public/xmlparser.h \
    ptu/ceudpsocket.h \
    public/routemsg.h \
    public/InterfaceMsg.h \
    ptu/udpsocketthread.h \
    usb/updateresource.h \
    update/updatetcpserver.h \
    update/updatesocket.h \
    update/updateserver.h \
    update/recepkgmanage.h \
    update/agreementmsg.h \
    update/updatexmlparser.h \
    update/updateclientthread.h \
    usb/usbthread.h \
    public/processsignalobject.h \
    ptu/serialctlthread.h


FORMS       += pisplayer.ui


RC_FILE     = icon.rc


OTHER_FILES += \
    update/updateclient.pro.user.2.2pre5

























unix:!symbian:!maemo5:isEmpty(MEEGO_VERSION_MAJOR) {
    target.path = /opt/PISPlayer/bin
    INSTALLS += target
}
